﻿<UserControl x:Class="BrainTechLLC.FolderExplorer.ShowFolderListView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid x:Name="topGrid">
        <ListView x:Name="listView1" BorderThickness="0" Margin="0,0,0,3"
                  TextBlock.FontSize="9"
                  ItemsSource="{Binding Path=SubFolders, Mode=OneWay}">
            <ListView.View>
                <GridView>
                    <GridViewColumn DisplayMemberBinding="{Binding Name}" Header="Folder Name" Width="300"/>
                    <GridViewColumn DisplayMemberBinding="{Binding FileCount}" Header="Files" Width="80"/>
                    <GridViewColumn DisplayMemberBinding="{Binding TotalFileCount}" Header="Files Total" Width="80"/>
                    <GridViewColumn Header="Size" Width="150">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding DirectorySize}" Visibility="{Binding DirectorySizeNonZero}"/>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                </GridView>
            </ListView.View>
        </ListView>
    </Grid>
</UserControl>
